from fastapi import APIRouter
from . import auth, users, roles, permissions, departments, drone_types, drones, menus, routes, statistics, dicts, detection_models, task_scenarios, detection_targets, tasks, operation_logs, flight_logs, detection_logs, exception_logs, no_fly_zones, drone_control, drone_control_px4

# 创建主路由
api_router = APIRouter()

# 注册各个模块的路由
api_router.include_router(auth.router, prefix="/auth", tags=["认证"])
api_router.include_router(users.router, prefix="/users", tags=["用户管理"])
api_router.include_router(roles.router, prefix="/roles", tags=["角色管理"])
api_router.include_router(permissions.router, prefix="/permissions", tags=["权限管理"])
api_router.include_router(departments.router, prefix="/departments", tags=["部门管理"])
api_router.include_router(drone_types.router, prefix="/drone-types", tags=["无人机类型管理"])
api_router.include_router(drones.router, prefix="/drones", tags=["无人机管理"])
api_router.include_router(menus.router, prefix="/menus", tags=["菜单管理"])
api_router.include_router(routes.router, prefix="/routes", tags=["航线管理"])
api_router.include_router(statistics.router, prefix="/statistics", tags=["统计数据"])
api_router.include_router(dicts.router, prefix="/dicts", tags=["数据字典"])
api_router.include_router(detection_models.router, prefix="/detection-models", tags=["检测模型管理"])
api_router.include_router(detection_targets.router, prefix="/detection-targets", tags=["检测目标管理"])
api_router.include_router(task_scenarios.router, prefix="/task-scenarios", tags=["任务场景管理"])
api_router.include_router(tasks.router, prefix="/tasks", tags=["任务管理"])
api_router.include_router(operation_logs.router, prefix="/operation-logs", tags=["操作日志管理"])
api_router.include_router(flight_logs.router, prefix="/flight-logs", tags=["飞行日志管理"])
api_router.include_router(detection_logs.router, prefix="/detection-logs", tags=["检测日志管理"])
api_router.include_router(exception_logs.router, prefix="/exception-logs", tags=["异常日志管理"])
api_router.include_router(no_fly_zones.router, prefix="/no-fly-zones", tags=["禁飞区管理"])
api_router.include_router(drone_control.router, prefix="/drone-control", tags=["无人机手动控制"])
api_router.include_router(drone_control_px4.router, prefix="/drone-control/px4", tags=["PX4无人机控制"])

__all__ = ["api_router"]